package com.ruoyi.slope.ai.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.slope.ai.mapper.SlopeAiDatasetManagementMapper;
import com.ruoyi.slope.ai.domain.SlopeAiDatasetManagement;
import com.ruoyi.slope.ai.service.ISlopeAiDatasetManagementService;

/**
 * 数据集管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-05
 */
@Service
public class SlopeAiDatasetManagementServiceImpl implements ISlopeAiDatasetManagementService 
{
    @Autowired
    private SlopeAiDatasetManagementMapper slopeAiDatasetManagementMapper;

    /**
     * 查询数据集管理
     * 
     * @param datasetId 数据集管理主键
     * @return 数据集管理
     */
    @Override
    public SlopeAiDatasetManagement selectSlopeAiDatasetManagementByDatasetId(String datasetId)
    {
        return slopeAiDatasetManagementMapper.selectSlopeAiDatasetManagementByDatasetId(datasetId);
    }

    /**
     * 查询数据集管理列表
     * 
     * @param slopeAiDatasetManagement 数据集管理
     * @return 数据集管理
     */
    @Override
    public List<SlopeAiDatasetManagement> selectSlopeAiDatasetManagementList(SlopeAiDatasetManagement slopeAiDatasetManagement)
    {
        return slopeAiDatasetManagementMapper.selectSlopeAiDatasetManagementList(slopeAiDatasetManagement);
    }

    /**
     * 新增数据集管理
     * 
     * @param slopeAiDatasetManagement 数据集管理
     * @return 结果
     */
    @Override
    public int insertSlopeAiDatasetManagement(SlopeAiDatasetManagement slopeAiDatasetManagement)
    {
        return slopeAiDatasetManagementMapper.insertSlopeAiDatasetManagement(slopeAiDatasetManagement);
    }

    /**
     * 修改数据集管理
     * 
     * @param slopeAiDatasetManagement 数据集管理
     * @return 结果
     */
    @Override
    public int updateSlopeAiDatasetManagement(SlopeAiDatasetManagement slopeAiDatasetManagement)
    {
        return slopeAiDatasetManagementMapper.updateSlopeAiDatasetManagement(slopeAiDatasetManagement);
    }

    /**
     * 批量删除数据集管理
     * 
     * @param datasetIds 需要删除的数据集管理主键
     * @return 结果
     */
    @Override
    public int deleteSlopeAiDatasetManagementByDatasetIds(String[] datasetIds)
    {
        return slopeAiDatasetManagementMapper.deleteSlopeAiDatasetManagementByDatasetIds(datasetIds);
    }

    /**
     * 删除数据集管理信息
     * 
     * @param datasetId 数据集管理主键
     * @return 结果
     */
    @Override
    public int deleteSlopeAiDatasetManagementByDatasetId(String datasetId)
    {
        return slopeAiDatasetManagementMapper.deleteSlopeAiDatasetManagementByDatasetId(datasetId);
    }
}
